import request from '@/router/axios'

export function fetchEimsInTransitList(query) {
  return request({
    url: '/eims/intransit/page',
    method: 'get',
    params: query
  })
}

export function addEimsInTransitObj(obj) {
  return request({
    url: '/eims/intransit',
    method: 'post',
    data: obj
  })
}

export function getEimsInTransitObj(id) {
  return request({
    url: '/eims/intransit/' + id,
    method: 'get'
  })
}

export function delEimsInTransitObj(id) {
  return request({
    url: '/eims/intransit/' + id,
    method: 'delete'
  })
}

export function putEimsInTransitObj(obj) {
  return request({
    url: '/eims/intransit',
    method: 'put',
    data: obj
  })
}
